package com.itheima.object;

public class objStudent {      //对象本质上是一种特殊的数据结构(可以理解成一张表)
    String name;
    double chinese;
    double math;

    public void printAllscore(){
        System.out.println(name + "的总成绩是" + (chinese + math));
    }

    public void printAverageScore(){
        System.out.println(name + "的平均成绩是" + (chinese + math) / 2);
    }
}
